import { useSearchParams } from "react-router-dom";

export function useMySearchParams(...attr) {
  const [searchParams] = useSearchParams();
  let arr = [...attr]
  let valueArr = []
  arr.forEach((item)=>{
    valueArr.push(searchParams.get(item)) 
  })
  arr = [...valueArr]
  return arr;
}
